home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set channel to the clickOn
- set the member of sprite channel to member "Sound On Button dn"
- set the member of sprite (channel - 1) to member "Sound Off Button up"
- updateStage()
- repeat while the stillDown
- if rollOver(channel) then
- set the member of sprite channel to member "Sound On Button dn"
- set the member of sprite (channel - 1) to member "Sound Off Button up"
- else
- set the member of sprite channel to member "Sound On Button up"
- set the member of sprite (channel - 1) to member "Sound Off Button dn"
- end if
- updateStage()
- end repeat
- if rollOver(channel) then
- set the member of sprite channel to member "Sound On Button dn"
- set the member of sprite (channel - 1) to member "Sound Off Button up"
- updateStage()
- puppetSound(0)
- set the soundEnabled to 1
- puppetSound(2, "Background Noise")
- end if
- end
-